package com.chukun.concurrency.controller;

import com.chukun.concurrency.threadLocal.RequestWrapperHolder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ThreadLocalController {


    @RequestMapping("/threadlocal/test")
    @ResponseBody
    public Long testThreadLocal(){
        return RequestWrapperHolder.get();
    }

}
